"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Delete = /** @class */ (function () {
    function Delete(props) {
        var knex = props.knex;
        this._knex = knex;
    }
    Delete.prototype.delete = function (TABLE_NAME, CONDITION) {
        return this._knex(TABLE_NAME).delete(CONDITION).del().then(function () {
            return 'ok';
        }).catch(function (err) {
            console.error('Delete');
            throw err;
        });
    };
    return Delete;
}());
exports.default = Delete;
